package com.yc.boot.sys.model.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

import static java.lang.Boolean.FALSE;

/**
 * @author 杨智杰
 * @since 2021/8/25 13:25
 */
@Data
@Accessors(chain = true)
@ApiModel("新建角色数据模型")
public class SaveRole {

    @NotBlank
    @Length(max = 64)
    @ApiModelProperty(value = "角色名", required = true)
    private String name;

    @ApiModelProperty(value = "当前状态")
    private Integer status = 0;

    @ApiModelProperty(value = "默认角色")
    private Boolean isDefault = FALSE;

}
